$(document).ready(function() {
    $('#id_username').focus();
    $('#id_username').select();
});

